package com.bawei.park2302.notice


import com.bawei.lib_base.utils.utils.mvi.BaseViewModel
import com.bawei.lib_base.utils.utils.utils.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class NoticeViewModel @Inject constructor(val apiService: ApiService) : BaseViewModel<NoticeIntent>(){
    override fun handelIntent(it : NoticeIntent) {
        when(it) {
            is NoticeIntent.notice -> httpRequest(apiService.notices(it.page,it.size))
        }
    }
}